package com.ww.learn.generic

class AnimalProducer: Producer<Animal> {
    override fun produce(): Animal = Animal("Generic Animal")
}

class DogProducer: Producer<Dog> {
    override fun produce(): Dog = Dog("Buddy")
}

class PuppyProducer: Producer<Puppy> {
    override fun produce(): Puppy = Puppy("Tiny")
}